﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
   <script type="text/javascript">
      $(document).ready(function () {
         $.get("/findj",function (mess) {
            show(mess);
         });
         $("[name=log]").click(function () {
            var phoneoremail = $("[name=phoneoremail]").val();
            var password = $("[name=password]").val();
            $.get("/login", {
               "phoneoremail": phoneoremail,
               "password": password
            },function (mess) {
               eval("var lo="+mess);
               alert(lo.info);
               if (lo.info=="登录成功"){
                  alert("登录成功");
                  window.location.href="/login1?uid="+lo.uid;
               }else {
                  alert("登录失败");
               }
            })
         })

         function show(mess) {
          JSON.stringify(mess);
            $("[name=highMoney]").empty();
            var list=mess.data;


if (list.length<10){
   for (var i=0;i<list.length;i++){
      $("<div class=\"divBox\">\n" +
              "            <a href=\"job_info.html\"><img src=\"images/18.gif\" width=\"84\"/></a>" +
              "            <p class=\"tit\"><a href='/job_info?pid="+list[i].pid+"'>"+list[i].pname+"</a></p>" +
              "            <p class=\"sub\"><a href='/company?pid="+list[i].pid+"'>"+list[i].enterprise.ename+"</a></p>" +
              "            <p class=\"num\"><span>"+list[i].salary+"</span></p>" +
              "         </div>" +
              "         <div class=\"lineBox\"></div>").appendTo("[name=highMoney]")

   }


}
else {
   for (var i=0;i<10;i++){
      $("<div class=\"divBox\">\n" +
              "            <a href=\"job_info.html\"><img src=\"images/18.gif\" width=\"84\"/></a>\n" +
              "            <p class=\"tit\"><a href=\"job_info.html\">"+list[i].pname+"</a></p>\n" +
              "            <p class=\"sub\"><a href=\"company.html\">"+list[i].enterprise.ename+"</a></p>\n" +
              "            <p class=\"num\"><span>"+list[i].salary+"</span></p>\n" +
              "         </div>\n" +
              "         <div class=\"lineBox\"></div>").appendTo("[name=highMoney]")

   }

}



         }

      })

   </script>
</head>

<body>
<div class="topDiv">
</div>
<div class="loginDiv">
   <div class="loginL">
      <img src="images/LOGO.png" />
      <img src="images/view_logo40.png" />
   </div>
   <div class="loginAddress">
      <div class="add1">
      </div>
   </div>
   <div class="loginC">
      <input name="" type="text" placeholder="请填写关键词或选择职位..." />
      <button id="search_btn"></button>
   </div>
   <div class="loginR">
      <img src="images/spirit_40.png" />
   </div>
</div>
<div class="menuDiv">

   <a href="index" class="onnav">首页</a>
   <a href="/log">个人中心</a>


   <a href="/log">我的职位</a>
</div>
<div class="BodyMain">
   <div class="mainTop">
      <div class="mainTopL">
         <ul>
         <div class="items">
           <div class="itemOne">
              <span class="itme1"><b></b>销售|市场|客服|贸易</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme2"><b></b>经营管理|人事|行政|财务</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme3"><b></b>生产|质管|技工|物流</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme4"><b></b>教育|法律|咨询|翻译</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme5"><b></b>零售|家政|餐饮|旅游</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme6"><b></b>广告|媒体|艺术|出版</span>
           </div>
         </div>
         <div class="items">
           <div class="itemOne">
              <span class="itme7"><b></b>IT|互联网|通信</span>
           </div>
         </div>
         </ul>
      </div>
      <div class="mainTopR">
         <div class="ads">
            <div class="floatL" id="left"></div>
            <div class="adBox0">
              <ul style="margin-left: 0px; overflow: hidden">
                <li>
                  <a href="javascript:void(0)"><div style="background:url(images/1.jpg);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                </li>
                <li>
                  <a href="javascript:void(0)"><div style="background:url(images/2.jpg);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                </li>
                <li>
                  <a href="javascript:void(0)"><div style="background:url(images/3.gif);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                </li>
              </ul>
            </div>
            <div class="clear"> </div>
         </div>
         <div class="login">
            <div class="erweima">
               <div class="close"></div>
               <div class="ewmimg"><img src="images/showqrcode.jpg" /></div>
               <div class="ewmtxt">使用微信扫描上方二维码登录</div>
            </div>
            <div class="logintop">
               <div class="loginC loginA select">
                  <span>个人登录</span>
               </div>
               <div class="loginC loginB">
               </div>
            </div>
            <div class="loginmain">
               <div class="ContentA">
                  <div class="txtInput"><input name="phoneoremail" type="text" placeholder="请输入用户名"/></div>
                  <div class="txtInput"><input name="password" type="text" placeholder="请输入密码"/></div>
                  <div class="txtbtn">
                    <div style="float:left">
                     <br /><div class="clear"></div>
                     <a href="/password" class="a2">忘记密码</a>
                    </div>
                    <input name="log" type="button" class="lobtn" value="登  录"/>
                  </div>
                  <div class="zcbox">
                     <div class="zc2">
                        <a name="onemin" href="/onemin" class="a1">一分钟填写简历</a>
                        <a href="/register" class="a2">注册</a>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="clear"></div>
      </div>
   </div>
   <div class="clear"></div>
   <div class="mainCon2">
      <div class="commontitdiv">
        <div class="title">高薪职位</div>
        <span>高薪就这么任性！</span>
      </div>
      <div class="clear"></div>
      <div name="highMoney" class="highMoney">
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a href="job_info.html"><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a href="job_info.html">橱柜设计</a></p>
            <p class="sub"><a href="company.html">深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
      </div>
   </div>
   <div class="clear"></div>
</div>
<div class="footerLine"></div>
<div class="footer">
  <div class="footerdown">
  </div>
</div>
</body>
<script>
   $(function () {
      $("#search_btn").on("click", function () {
         window.location = "searchJob.html"
      });
   });
</script>
</html>
